<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>服务与支持</title>
    <meta name="keywords" content="文乐文">
    <meta name="description" content="文乐文">

    <link rel="stylesheet" href="static/css/swiper.min.css" type="text/css" >
    <link rel="stylesheet" href="static/css/bootstrap.css" type="text/css" >
    <link rel="stylesheet" href="static/css/common.css" type="text/css" >
</head>
<body>

<!-- 包含头部 -->
<div class="header_box">  <!-- container-fluid -->
    <div class="header container">
        <div class="logo_box">
            <img src="static/picture/logo2.png">
        </div>
        <div class="nav_box">
            <a href="index.html">
                <div class="item">首页</div>
              </a>
              <a href="goods.html">
                <div class="item ">产品中心</div>
              </a>
              <a href="integral.html">
                <div class="item ">积分商城</div>
              </a>
              <a href="lease.html">
                <div class="item ">进销存ERP</div>
              </a>
              <a href="service.html">
                <div class="item active">服务与支持</div>
              </a>
              <a href="my.html">
                <div class="item ">个人中心</div>
            </a>
        </div>
        <div class="buy-box">
            <a href="javascript:;" class="tit">购买</a>
            <div class="sub" style="display: none;">
                <div class="list">
                    <a target="_blank" href="https://mall.jd.com/index-11504190.html?from=pc">文乐文京东旗舰店</a>
                </div>
            </div>
        </div>
        <div class="search_box">
            <input name="keyword" type="text" class="search_input" id="header_search_input" placeholder="搜索">
            <button id="header_search_btn" class="search_btn"></button>
        </div>
    </div>
</div>

<div class="container service_page">
    <div class="sub-nav">
        <div class="item">
            <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
            <a href="#file_model">资料下载</a>
        </div>
        <div class="line"></div>
        <div class="item">
            <span class="glyphicon glyphicon-map-marker"></span>
            <a href="#net_model">加盟网点</a>
        </div>
    </div>
</div>

<a id="file_model"></a>
<div class="container download_page">
    <div class="title">资料下载</div>

    <div class="dbox">
                <div class="item">
            <a href="static/file/LW-630K_V1.0.1_signed_20220303.zip" download="文乐文LW-630K针式打印机驱动程序.rar" target="_blank">
                <div class="colum pf1">
                    <span class="txt">文乐文LW-630K打印机驱动程序</span>
                    <span class="download-btn">下载</span>
                </div>
            </a>
                        <a href="static/file/51c8e28700be392cc43bd1b76b79cdc4.docx" download="文乐文LW-630K开票调试说明.docx" target="_blank">
                <div class="colum pf2">
                    <span class="txt">发票调试参考</span>
                    <span class="download-btn">下载</span>
                </div>
            </a>
                        <a href="static/file/cbe57372dfea694858634fa8bc652303.docx" download="文乐文LW-630K打印机技术手册.docx" target="_blank">
                <div class="colum pf3">
                    <span class="txt">技术手册</span>
                    <span class="download-btn">下载</span>
                </div>
            </a>
                    </div>
            </div>
</div>


<a id="net_model"></a>
<div class="container service_page">
    <div class="map_title">
        <div class="logo"></div>
        <div class="name">文乐文加盟网络地图明细</div>
    </div>
    <div class="area_box">
        <select class="area" id="area_select"></select>
    </div>
    <div class="col-sm-9" id="container" style="height:700px;background:white;margin:20px 0 0;"></div>
    <div class="col-sm-3 net_list_box" style="height:auto;">
        <div class="title">网点列表</div>
        <div class="net_list" id="net_list">
                            <div class="item">
                    <div class="name">宁波得昱办公用品有限公司</div>
                    <div class="tel">电话：18583007777</div>
                    <div class="address">地址：宁波</div>
                </div>
                            <div class="item">
                    <div class="name">温州日高数码科技有限公司</div>
                    <div class="tel">电话：13968867315</div>
                    <div class="address">地址：温州鹿城区东方花苑数码科技广场二楼A09号</div>
                </div>
                            <div class="item">
                    <div class="name">舟山金利达电子科技有限公司</div>
                    <div class="tel">电话：13857219958</div>
                    <div class="address">地址：舟山市沈家门食品厂路75-79号</div>
                </div>
                            <div class="item">
                    <div class="name">宁波冉羽电子科技有限公司</div>
                    <div class="tel">电话：13757494447</div>
                    <div class="address">地址：宁波鄞州区朝晖路188号颐高数码广场三楼C310 </div>
                </div>
                        <!--
            <div class="item">
                <div class="name">锦州分公司</div>
                <div class="tel">电话：024-88426171转810</div>
                <div class="address">地址：辽宁省锦州市凌河区中央大街三段21号蓝天大厦19楼16号</div>
            </div>
            -->
        </div>
    </div>
</div>



<!-- 包含公共底部文件 -->
<div class="footer">
    <div class="footer_box container">
        <div class="contact_box col-sm-4 f-cb">
            <div class="dtitle">服务/Service</div>
            <div class="tel_box">
                <p class="title">全国统一热线电话</p>
                <p class="tel">0574-58974484</p>
            </div>
            <div class="mail_box">
                <p class="title">服务邮箱</p>
                <p class="mail">598292588@qq.com</p>
            </div>
        </div>
        <div class="nav_list col-sm-4 f-cb">
            <div class="dtitle">导航/Navigation</div>
            <ul class="nav_box">
                <li><a href="about.html">关于我们</a></li>
                <li><a href="index1.html">商品中心</a></li>
                <li><a href="lease.html">打印机租赁</a></li>
                <li><a href="">服务与支持</a></li>
                <li><a href="contact.html">联系我们</a></li>
            </ul>
        </div>
        <div class="search col-sm-4 f-cb">
            <div class="dtitle">产品中心/Product center</div>
            <div class="search_box">
                <input class="search_input" name="keyword" placeholder="搜索">
                <!-- <button class="btn btn-primary jd_btn" type="button">京东商城</button>-->
                <a class="btn btn-primary jd_btn" target="_blank" href="https://mall.jd.com/index-11504190.html?from=pc">京东商城</a>
            </div>
            <div class="wechat_box">
                <div class="item">
                    <img src="static/picture/wechat.svg">
                </div>
                <div class="item">
                    <img src="static/picture/weibo.svg">
                </div>
            </div>
        </div>
    </div>

    <div class="site_info container">
        Copyright ©2020 宁波文乐文科技有限公司 版权所有 <a href="https://beian.miit.gov.cn/#/Integrated/index">浙ICP备2020041669号-1</a>
    </div>
</div>

<script src="static/js/jquery.js" type="text/javascript" >
<script src="/portal/bootstrap/js/bootstrap.js" type="text/javascript" ></script>
<script src="static/js/echarts.min.js" type="text/javascript" ></script>
<script src="static/js/china.js" type="text/javascript" ></script>
<script src="static/js/common.js" type="text/javascript" ></script>
</body>
</html>


    <script type="text/javascript">
        // 全国省份列表
        var dataMap = [{ name: '北京' }, { name: '天津' }, { name: '上海' }, { name: '重庆' }, { name: '河北' }, { name: '河南' }, { name: '云南' }, { name: '辽宁' }, { name: '黑龙江' }, { name: '湖南' }, { name: '安徽' }, { name: '山东' },
            { name: '新疆' }, { name: '江苏' }, { name: '浙江' }, { name: '江西' }, { name: '湖北' }, { name: '广西' }, { name: '甘肃' }, { name: '山西' }, { name: '内蒙古' }, { name: '陕西' }, { name: '吉林' }, { name: '福建' }, { name: '贵州' },
            { name: '广东' }, { name: '青海' }, { name: '西藏' }, { name: '四川' }, { name: '宁夏' }, { name: '海南' }, { name: '台湾' }, { name: '香港' }, { name: '澳门' }]
        // 需要在页面上直接标记出来的城市
        // var specialMap = ['浙江', '云南', '陕西'];
        var specialMap = ['浙江'];

        // 初始化选择器
        var select_html = '';
        for (var j = 0; j < dataMap.length; j++) {
            if ('浙江' == dataMap[j].name) {
                select_html += '<option value="'+dataMap[j].name+'" selected>'+dataMap[j].name+'</option>';
            } else {
                select_html += '<option value="'+dataMap[j].name+'">'+dataMap[j].name+'</option>';
            }
        }
        $('#area_select').html(select_html);


        // 对dataMap进行处理，使其可以直接在页面上展示
        for (var i = 0; i < specialMap.length; i++) {
            for (var j = 0; j < dataMap.length; j++) {
                if (specialMap[i] == dataMap[j].name) {
                    dataMap[j].selected = true;
                    break;
                }
            }
        }
        // 绘制图表，准备数据
        var option = {
            tooltip: {
                formatter: function (params) {
                    //var info = '<p style="font-size:18px">' + params.name + '</p><p style="font-size:14px">这里可以写一些，想展示在页面上的别的信息</p>'
                    var info = '<p style="font-size:18px">' + params.name + '</p>'
                    return info;
                },
                backgroundColor: "#ff7f50",//提示标签背景颜色
                textStyle: { color: "#fff" } //提示标签字体颜色
            },
            series: [
                {
                    name: '中国',
                    type: 'map',
                    mapType: 'china',
                    top: "10%",//组件距离容器的距离
                    roam: false,//是否开启鼠标缩放和平移漫游
                    zoom:1.1,
                    // selectedMode: 'multiple',
                    selectedMode: 'single',
                    label: {
                        normal: {
                            show: true,//显示省份标签
                            textStyle:{color:"#c71585"}//省份标签字体颜色
                        },
                        emphasis: {
                            show: true,//对应的鼠标悬浮效果
                            textStyle:{color:"#800080"}
                        }
                    },
                    itemStyle: {
                        normal: {
                            borderWidth: .5,//区域边框宽度
                            borderColor: '#009fe8',//区域边框颜色
                            areaColor:"#ffefd5",//区域颜色
                        },
                        emphasis: {
                            borderWidth: .5,
                            borderColor: '#4b0082',
                            areaColor: "#ffdead",
                        }
                    },
                    data: dataMap
                }
            ]
        };
        //初始化echarts实例
        var myChart = echarts.init(document.getElementById('container'));
        //使用制定的配置项和数据显示图表
        myChart.setOption(option);
        myChart.off("click");
        myChart.on('click', function (param) {
            //console.log('点击城市',param.name);
            //console.log('dataMap',dataMap);
            var select_html = '';
            for (var j = 0; j < dataMap.length; j++) {
                if (param.name == dataMap[j].name) {
                    select_html += '<option value="'+dataMap[j].name+'" selected>'+dataMap[j].name+'</option>';
                } else {
                    select_html += '<option value="'+dataMap[j].name+'">'+dataMap[j].name+'</option>';
                }
            }
            $('#area_select').html(select_html);
            change_net_list(param.name);
        });

        $('#area_select').change(function (){
            change_net_list($('#area_select').val());
        })

        function change_net_list(region_name){
            $.ajax({
                url:'/portal/index/franchisee_list',
                data:{region_name:region_name},
                success:function (res){
                    var region_html = '';
                    if(res.data.list.length <= 0){
                        $('#net_list').html('该地点暂无代理点');
                        return false;
                    }
                    for (var k = 0; k < res.data.list.length; k++){
                        region_html += '<div class="item">' ;
                        // region_html +=     '<div class="name">'+res.data.list[k].name+'</div>' ;
                        // region_html +=     '<div class="tel">电话：'+res.data.list[k].mobile+'</div>' ;
                        // region_html +=     '<div class="address">地址：'+res.data.list[k].address+'</div>' ;
                        region_html +=     '<div class="name">'+res.data.list[k].agent_name+'</div>' ;
                        region_html +=     '<div class="tel">电话：'+res.data.list[k].tel+'</div>' ;
                        region_html +=     '<div class="address">地址：'+res.data.list[k].address+'</div>' ;
                        region_html += '</div>';
                    }
                    $('#net_list').html(region_html);
                },
                error:function (res){

                }
            })
        }
    </script>


<script>
    // $('.dropdown-toggle').dropdown()
</script>